Mint an API key. The plaintext `key` is returned HERE AND NOWHERE ELSE.
curl --request POST \
--url https://tryno.io/api/communities/{handle}/api-keys \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"name": "<string>",
"scopes": []
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', scopes: []})
};
fetch('https://tryno.io/api/communities/{handle}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/communities/{handle}/api-keys"
payload = {
"name": "<string>",
"scopes": []
}
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}platform-admin
Mint an API key. The plaintext `key` is returned HERE AND NOWHERE ELSE.
POST
/
communities
/
{handle}
/
api-keys
Mint an API key. The plaintext `key` is returned HERE AND NOWHERE ELSE.
curl --request POST \
--url https://tryno.io/api/communities/{handle}/api-keys \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"name": "<string>",
"scopes": []
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({name: '<string>', scopes: []})
};
fetch('https://tryno.io/api/communities/{handle}/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/communities/{handle}/api-keys"
payload = {
"name": "<string>",
"scopes": []
}
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Autorizações
Clerk-managed session cookie (or the first-party tryno_session bridge cookie). Sent automatically by browsers on same-origin requests.
Parâmetros de caminho
Corpo
application/json
Resposta
Created. key is the plaintext, shown once.
The response is of type object.

